﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="fhdb" content="true">
    <title>分销订单</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="stylesheet" href="css/distributionOrder.css">
    <link rel="stylesheet" href="css/weui.css"/>
    <link rel="stylesheet" href="css/weuix.css"/>
    <script src="js/zepto.min.js"></script>
    <script src="js/zepto.weui.js"></script>
    <script src="js/iscroll-lite.js"></script>
    <script src="js/jquery-1.10.2.min.js"></script>
</head>
<body>
    <div class="backBox" onClick="javascript:history.back(-1);">
        <span class="glyphicon glyphicon-chevron-left"></span>
    </div>
    <div class="topTitle ">分销订单</div>
    <div id="fxorder">


    </div>
    <div class="loaded">已加载全部数据</div>
</body>
<script>
    $(document).ready(function () {
        $.ajax({
            type: "POST",
            url: "../../BaseRefWeb.aspx?stype=ISpOrderFun&method=GetFxOrder&type=sp",
            success: function (result) {
                var data = JSON.parse(result);
                console.log(data);
                var html = "";
                for (var i = 0; i < data.length; i++) {
                    html += '<div class="orderId"><span>' + data[i].TB_BUYER_NAME + '</span><span>已完成</span></div><div class="line"></div><div class="commodity"><img src="../../' + data[i].TB_GOODS_PATH + '" alt="">';
                    html += '<div class="information"><p>' + data[i].TB_GOODS_NAME + '</p><div class="amount">￥' + data[i].TB_PRICE + '</div></div></div><div class="line"></div>';
                    html += '<div class="pay"><span>订单编号：</span><span>' + data[i].TB_NUMBER + '</span></div >';
                    html += '<div class="buyTime"><span> 下单时间：</span><span>' + data[i].TB_ADDTIME + '</span></div>';
                    html += '<div class="space"></div><div class="commission" ><span>预计佣金：</span><span>+</span><span>' + data[i].TB_YJ_PRICE + '</span></div>';
                }

                $("#fxorder").append(html);
            }
        });
    })
</script>
</html>